<include file="__THEME__/header" />


<script type="text/javascript" src="../Public/Js/Common.js"></script>
<link  href="../Public/layout.css" rel="stylesheet" type="text/css"/>
<link  href="../Public/group.css" rel="stylesheet" type="text/css"/>
</head>

<body>



<div class="content"><!-- 内容 begin  -->
   <!-- 用户组件列表 begin -->
   <include file="__THEME__/apps" />      
  <!-- 用户组件列表 end -->
  
  <div class="main"> <!-- 右侧内容 begin  -->
  <div class=page_title> <!-- page_title begin -->
  	<div class="left" style="width:80px;">
    	<span class="headpic50"><a href="__TS__/space/{$uid}"><img src="{$uid|getUserFace}"/></a></span>
    </div>
    <div class="left" style="width:583px;">
    	<h2> {$uid|getUserName}的群组 </h2>
        
      </div>
  <div class="c"></div>
</div><!-- page_title end -->
  
  
  <div class="tab-menu"><!-- 切换标签 begin  -->
      <ul>
      <li><a href="__APP__/SomeOne/index/uid/{$uid}" class="on"><span>{$uid|getUserName}的群组</span></a></li>
      <li><a href="__APP__/SomeOne/topic/uid/{$uid}"><span>{$uid|getUserName}的话题</span></a></li>
      <li><a href="__APP__/Index/add"><span><div class="ico_add">&nbsp;</div>创建新群</span></a></li>
      </ul>
  </div><!-- 切换标签 end  -->
  <div class="MenuSub">
  	<a href="__APP__/SomeOne/index/uid/{$uid}" <if condition="!$type">class="cGray"</if> >全部</a>|<a href="__APP__/SomeOne/index/uid/{$uid}/type/join" <if condition="$type eq 'join'">class="cGray"</if> >{$uid|getUserName}加入的群组</a>|<a href="__APP__/SomeOne/index/uid/{$uid}/type/manage" <if condition="$type eq 'manage'">class="cGray"</if> >{$uid|getUserName}管理的群组</a>
  </div>
  
  
  <div class="groupBox">
  
  <div class="boxL" style="width:600px;"><!-- 好友日志 begin  -->
    
  		<ul class="search">
  		<volist name="grouplist['data']" id="group">
       	  <li class="bx1" onMouseOver="this.className='bx2'" onMouseOut="this.className='bx1'">
          		<div class="left" style="width: 90px;"><span class="pic80"><a href="__APP__/Group/index/gid/{$group['id']}"><img src="__ROOT__/thumb.php?w=80&h=80&url={$group['logo']|get_photo_url}"/></a></span></div>
          		<div class="left" style="width: 430px;">
       			  <h3><a href="__APP__/Group/index/gid/{$group['id']}"><strong>{$group['name']}</strong></a></h3>
                  <p>成员：{$group['membercount']}</p>
                  <p>创建：{$group['ctime']|friendlyDate}</p>
                  <p>类型：{$group['cid0']|getCategoryName}</p>
          		</div>
                <div class="left rmenu" style="width: 60px;">
                <a href="__APP__/Group/index/gid/{$group['id']}">浏览该群</a> 
               
      			<php>$level = getLevel($uid,$group['id']);</php>	
      			<php>if($level===null){ </php><a href="javascript:joingroup({$group['id']});">加入该群</a><php>}</php>
      			<php>if($level==="0"){ </php>&nbsp;等待审核<php>}</php>
      			<php>if($level==1 || $level==2){ </php><a href="__APP__/Manage/index/gid/{$group['id']}">管理该群</a><php>}</php>
      			<php>if($level==3){ </php>&nbsp;该群成员<php>}</php>
      			
                </div>
       	  </li>
         </volist>
        
        </ul>
        <div class="page">{$grouplist['html']}</div>
  </div><!-- 好友日志 end  -->
  
  </div>  </div><!-- 右侧内容 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->

<include file="__THEME__/footer" />

</body>
</html>

